<?php 


use yii\helpers\Html;

 ?>

<div>管理员管理-->角色列表</div>

<div class="contenttitle2">
        <h3>角色列表</h3>
</div>
 <table class="stdtable">
 	<colgroup>
        <col class="con0" width="">
        <col class="con1" width="25%">
        <col class="con0" width="25%">
        <col class="con1" width="">
        <col class="con0" width="30%">
    </colgroup>
	<thead>
 	<tr>
 		<th class="head0">编号</th>
 		<th class="head1">角色名称</th>
 		<th class="head0">角色简介</th>
 		<th class="head1">是否</th>
 		<th class="head0">操作</th>
 	</tr>
 	</thead>
 	<tbody>
 	<tr><?php foreach ($data as $key => $val) {
 	?>
 	
 		<td class="head0"><?= $val->role_id ?></td>
 		<td class="head1"><?= $val->role_name ?></td>
 		<td class="head0"><?= $val->role_desc ?></td>
 		<td class="head1" style="text-align:center"><?php if($val->role_status==1){ ?><div class="notibar msgsuccess" style="width:58px;"><?php }else{ ?><div class="notibar msgerror" style="width:54px;"><?php } ?></div></td>
 		<td class="head0"> 	<a href="index.php?r=role/update&role_id=<?= $val->role_id; ?>" class="btn btn2 btn_flag" ><span>修改</span></a>&nbsp&nbsp<a href="index.php?r=role/delete&role_id=<?= $val->role_id; ?>" class="btn btn2 btn_trash"><span>删除</span></a></td>
 	</tr>
 	 <?php } ?>
 	</tbody>
 </table>
